import request from '@/utils/request'


/**
 * 登录
 */
export const login = data => {
  return request({
    url: '/users/login',
    method: 'POST',
    data
  })
}
/**
 * 获取全量用户列表
 */
export const getUserList = (params) => {
  return request({
    url: '/users/list',
    method: 'POST',
    data: params
  })
}
/***
 * 用户新增/编辑
 */
export const userSubmit = (params) => {
  return request({
    url: '/users/operate',
    method: 'POST',
    data: params
  })
}
/***
 * 用户删除
 */
export const userDelete = (params) => {
  return request({
    url: '/users/delete',
    method: 'POST',
    data: params
  })
}


